#include<stdio.h>

int main()
{
	float a,s[30],av,t;
	int m=0,count,i;
	count=0;t=0.0;
	printf("\nPlease enter marks(-1 to end):\n");
	scanf("%f",&a);
	while(a>0)
	{
		s[m]=a;
		m++;
		scanf("%f",&a);
	} 
	for(i=0;i<m;i++)
	{
		t+=s[i];
		av=t/m;
	}
	for(i=0;i<m;i++)
	{
		if(s[i]>=av){count++;}
	}
	printf("\nThe number of students:%d\n",count);
	printf("Ave=%6.2f\n",av);
} 
